package com.example.myapplication.kotlin
// 流程控制-if语句
fun main() {
    fun getScore(score: Int): String {
        return if (score >= 90 && score <= 100) {
            "优秀"
        } else if (score >= 80 && score <= 89) {
            "良好"
        } else if (score >= 70 && score <= 79) {
            "中等"
        } else if (score >= 60 && score <= 69) {
            "及格"
        } else {
            "不及格"
        }
    }
    println(getScore(80)) // 良好
}

